]> git.armaanb.net Git - dotfiles.git/blobdiff - .config/nvim/init.vim
nvim: make nohl binding silent
[dotfiles.git] / .config / nvim / init.vim
index 718707f418a0cd476034140fe79e4f8e274751c8..d7d0c22d9d050bd6ab3d1ea05d1a83544358c752 100644 (file)
@@ -1,14 +1,18 @@
+" General settings
 set mouse=a
 set undofile
 set textwidth=80
 map Q <nop>
 
+" Plugins
 call plug#begin()
+Plug 'ackyshake/vimcompletesme'      " Simple autocompletion
 Plug 'ap/vim-css-color'              " Highlight css colors
 Plug 'ctrlpvim/ctrlp.vim'            " Fuzzy file finding
 Plug 'editorconfig/editorconfig-vim' " Follow editorconfig
+Plug 'godlygeek/tabular'             " Line things up
 Plug 'meain/hima-vim'                " Nice color scheme
-Plug 'sheerun/vim-polyglot'          " Language pack 
+Plug 'sheerun/vim-polyglot'          " Language pack
 Plug 'tpope/vim-commentary'          " Easily comment
 Plug 'tpope/vim-rsi'                 " Readline bindings
 Plug 'tpope/vim-sensible'            " Sensible defaults
@@ -16,12 +20,15 @@ Plug 'tpope/vim-speeddating'         " Modify dates with C-a, C-x
 Plug 'tpope/vim-surround'            " Easily modify sorrounding characters
 call plug#end()
 
+" Colorscheme
 set termguicolors
 colorscheme hima
 
+" Easier split movement
 nnoremap <C-j> <C-w><C-j>
 nnoremap <C-k> <C-w><C-k>
 nnoremap <C-l> <C-w><C-l>
 nnoremap <C-h> <C-w><C-h>
 
-nnoremap <C-c> :noh<CR>
+" Clear search highlighting
+nnoremap <silent> <C-c> :noh<CR>