diff options
| author | Warrick Lo <warrick.s.z.lo@gmail.com> | 2021-12-11 23:33:16 -0800 |
|---|---|---|
| committer | Warrick Lo <warrick.s.z.lo@gmail.com> | 2021-12-11 23:33:16 -0800 |
| commit | 487d64163c59fa3de79b5ff1abf303475395c4a2 (patch) | |
| tree | 6339b3c8bbf7bdfe10e8c006c9cfbae9f66f527e /etc/nvim | |
| parent | 88de5bcf9b1598c5ada352d1f3b724423bf7e6ad (diff) | |
Restructure entire home directory
The new XDG base directories will resemble the Filesystem Hierarchy
Standard on Linux or the FreeBSD/OpenBSD directory structure. Refer to
the FHS or hier(7).
XDG user directories are defined in $XDG_CONFIG_HOME/user-dirs.dirs.
Diffstat (limited to 'etc/nvim')
| -rw-r--r-- | etc/nvim/init.vim | 40 |
1 files changed, 40 insertions, 0 deletions
diff --git a/etc/nvim/init.vim b/etc/nvim/init.vim new file mode 100644 index 0000000..93d9bd5 --- /dev/null +++ b/etc/nvim/init.vim @@ -0,0 +1,40 @@ +" Neovim configuration + +" General + +set nocompatible +filetype plugin on +filetype indent on +syntax on +set encoding=utf-8 +set splitbelow splitright +set wrap +set wildmode=longest,list,full +set lazyredraw +set ignorecase +set mouse=a +set guioptions=a +set nobackup nowritebackup +set list listchars=eol:¬,tab:»\ ,trail:∙,extends:›,precedes:‹ + +" Tabs + +set noexpandtab +set cindent +set softtabstop=0 +set tabstop=8 +set shiftwidth=8 + +" Line numbers + +set number + +" Comments + +" Do not comment on newline. +autocmd FileType * setlocal formatoptions-=c formatoptions-=r formatoptions-=o + +" Miscellaneous + +" Have :Q behave like :q. +command! Q :q |
