]> git.armaanb.net Git - dotfiles.git/blob - .config/nvim/init.vim
602038e28ffa58f6544d644943c6e4110e6d9f63
[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 'ap/vim-css-color'              " Highlight css colors
10 Plug 'ctrlpvim/ctrlp.vim'            " Fuzzy file finding
11 Plug 'editorconfig/editorconfig-vim' " Follow editorconfig
12 Plug 'meain/hima-vim'                " Nice color scheme
13 Plug 'sheerun/vim-polyglot'          " Language pack 
14 Plug 'tpope/vim-commentary'          " Easily comment
15 Plug 'tpope/vim-rsi'                 " Readline bindings
16 Plug 'tpope/vim-sensible'            " Sensible defaults
17 Plug 'tpope/vim-speeddating'         " Modify dates with C-a, C-x
18 Plug 'tpope/vim-surround'            " Easily modify sorrounding characters
19 call plug#end()
20
21 " Colorscheme
22 set termguicolors
23 colorscheme hima
24
25 " Easier split movement
26 nnoremap <C-j> <C-w><C-j>
27 nnoremap <C-k> <C-w><C-k>
28 nnoremap <C-l> <C-w><C-l>
29 nnoremap <C-h> <C-w><C-h>
30
31 " Clear search highlighting
32 nnoremap <C-c> :noh<CR>