summaryrefslogtreecommitdiff
path: root/nvim
diff options
context:
space:
mode:
Diffstat (limited to 'nvim')
-rw-r--r--nvim/.config/nvim/init.vim18
1 files changed, 14 insertions, 4 deletions
diff --git a/nvim/.config/nvim/init.vim b/nvim/.config/nvim/init.vim
index ee74f70..df7a711 100644
--- a/nvim/.config/nvim/init.vim
+++ b/nvim/.config/nvim/init.vim
@@ -1,6 +1,4 @@
1runtime! archlinux.vim 1"vimplug
2set number relativenumber
3
4call plug#begin() 2call plug#begin()
5Plug 'Shougo/deoplete.nvim', { 'do': ':UpdateRemotePlugins' } 3Plug 'Shougo/deoplete.nvim', { 'do': ':UpdateRemotePlugins' }
6Plug 'Shougo/deoplete-clangx' 4Plug 'Shougo/deoplete-clangx'
@@ -17,11 +15,14 @@ Plug 'godlygeek/tabular'
17Plug 'plasticboy/vim-markdown' 15Plug 'plasticboy/vim-markdown'
18call plug#end() 16call plug#end()
19 17
18"sets
20set guicursor= 19set guicursor=
20set number relativenumber
21set mouse=a 21set mouse=a
22set background=dark 22set background=dark
23syntax on 23syntax on
24set cursorline 24set cursorline
25set ignorecase
25set smartcase 26set smartcase
26set wildmenu " Tab autocomplete in command mode 27set wildmenu " Tab autocomplete in command mode
27set autoread " Auto reload changed files 28set autoread " Auto reload changed files
@@ -94,9 +95,18 @@ autocmd StdinReadPre * let s:std_in=1
94autocmd VimEnter * if argc() == 0 && !exists("s:std_in") | NERDTree | endif 95autocmd VimEnter * if argc() == 0 && !exists("s:std_in") | NERDTree | endif
95autocmd bufenter * if (winnr("$") == 1 && exists("b:NERDTree") && b:NERDTree.isTabTree()) | q | endif 96autocmd bufenter * if (winnr("$") == 1 && exists("b:NERDTree") && b:NERDTree.isTabTree()) | q | endif
96 97
98"insert centered
99autocmd InsertEnter * norm zz
100
101"shortcut split navigation
102map <C-h> <C-w>h
103map <C-j> <C-w>j
104map <C-k> <C-w>k
105map <C-l> <C-w>l
106
97"statusbar 107"statusbar
98hi Comment cterm=italic 108hi Comment cterm=italic
99hi CursorLine ctermbg=none 109hi CursorLine ctermbg=none cterm=bold guibg=#2b2b2b
100set statusline= 110set statusline=
101set statusline +=%1*\ %n\ %* "buffer number 111set statusline +=%1*\ %n\ %* "buffer number
102set statusline +=%5*%{&ff}%* "file format 112set statusline +=%5*%{&ff}%* "file format