diff options
| -rw-r--r-- | .config/nvim/general/commands.vim | 2 | ||||
| -rw-r--r-- | .config/nvim/general/settings.vim | 31 | ||||
| -rw-r--r-- | .config/nvim/keys/mappings.vim | 24 |
3 files changed, 4 insertions, 53 deletions
diff --git a/.config/nvim/general/commands.vim b/.config/nvim/general/commands.vim index 416c094..e69de29 100644 --- a/.config/nvim/general/commands.vim +++ b/.config/nvim/general/commands.vim @@ -1,2 +0,0 @@ -" Creates the 'tags' file. -command! MakeTags !ctags -R --exclude@.ctagsignore . diff --git a/.config/nvim/general/settings.vim b/.config/nvim/general/settings.vim index a505e64..a108e72 100644 --- a/.config/nvim/general/settings.vim +++ b/.config/nvim/general/settings.vim @@ -4,33 +4,10 @@ filetype plugin on filetype indent on " Load filetype-specific indent files. highlight NonText guifg=#4a4a59 " Invisible character colors highlight SpecialKey guifg=#4a4a59 -set autoindent -set cmdheight=2 " More space for displaing messages. -set cursorline " Highlight current line. -set encoding=utf-8 " The encoding displayed. -set expandtab " Tabs are spaces. -set fileencoding=utf-8 " The encoding written to the file. -set laststatus=0 -set listchars=tab:▸\ ,eol:¬ " Use the same symbols as TextMate for tabstops and EOLs -set mouse=a " Enable the mouse. + + set nobackup set noswapfile -set nowb -set nowrap " Don't wrap long lines. set number " Turn on line numbers. -set path+=** " Search down into subfolders. -set ruler " Show the cursor position all the time. -set shiftwidth=2 " Number of spaces that text is shifted when using << and >>. -set showmatch " Highlight matching [{()}]. -set showmode " Show what mode we are in at the bottom of the screen. -set smartindent -set smarttab -set softtabstop=2 " Number of spaces in tab when editing. -set splitbelow -set splitright " Split panes to the right and bottom. -set t_Co=256 " Support 256 colors. -set tabstop=2 " Number of visual spaces per tab. -set wildignore+=**/.git/** " Ignore these directories when finding. -set wildignore+=**/node_modules/** -set wildignore+=**/vendor/** -set wildmenu " Display all matching files when we tab complete. +set linebreak +set listchars=tab:▸\ ,eol:¬ " Use the same symbols as TextMate for tabstops and EOLs diff --git a/.config/nvim/keys/mappings.vim b/.config/nvim/keys/mappings.vim index d72e066..bc222da 100644 --- a/.config/nvim/keys/mappings.vim +++ b/.config/nvim/keys/mappings.vim @@ -1,26 +1,2 @@ " Shortcut to rapidly toggle `set list` nmap <leader>l :set list!<CR> - -" Use alt+jkhl to resize windows. -nnoremap <M-j> :resize -2<CR> -nnoremap <M-k> :resize +2<CR> -nnoremap <M-h> :vertical resize -2<CR> -nnoremap <M-l> :vertical resize +2<CR> - -" Make window navigation similar to dwm. -nnoremap <C-h> <C-w>h -nnoremap <C-j> <C-w>j -nnoremap <C-k> <C-w>k -nnoremap <C-l> <C-w>l - -" Window splitting. -nnoremap <C-space> :sp<CR> -nnoremap <M-space> :vsp<CR> -inoremap <C-space> <Esc>:sp<CR> -inoremap <M-space> <Esc>:vsp<CR> - -" Tab navigation. -nnoremap <C-t> :tabnew<CR> -inoremap <C-t> <Esc>:tabnew<CR> -nnoremap H gT -nnoremap L gt |
