]> git.armaanb.net Git - dotfiles.git/blob - .config/nvim/init.vim
nvim: add vimcompletesme, tabular plugins
[dotfiles.git] / .config / nvim / init.vim
1 " General settings
2 set mouse=a
3 set undofile
4 set textwidth=80
5 map Q <nop>
6
7 " Plugins
8 call plug#begin()
9 Plug 'ackyshake/vimcompletesme'      " Simple autocompletion
10 Plug 'ap/vim-css-color'              " Highlight css colors
11 Plug 'ctrlpvim/ctrlp.vim'            " Fuzzy file finding
12 Plug 'editorconfig/editorconfig-vim' " Follow editorconfig
13 Plug 'godlygeek/tabular'             " Line things up
14 Plug 'meain/hima-vim'                " Nice color scheme
15 Plug 'sheerun/vim-polyglot'          " Language pack
16 Plug 'tpope/vim-commentary'          " Easily comment
17 Plug 'tpope/vim-rsi'                 " Readline bindings
18 Plug 'tpope/vim-sensible'            " Sensible defaults
19 Plug 'tpope/vim-speeddating'         " Modify dates with C-a, C-x
20 Plug 'tpope/vim-surround'            " Easily modify sorrounding characters
21 call plug#end()
22
23 " Colorscheme
24 set termguicolors
25 colorscheme hima
26
27 " Easier split movement
28 nnoremap <C-j> <C-w><C-j>
29 nnoremap <C-k> <C-w><C-k>
30 nnoremap <C-l> <C-w><C-l>
31 nnoremap <C-h> <C-w><C-h>
32
33 " Clear search highlighting
34 nnoremap <C-c> :noh<CR>