Created
October 19, 2017 17:36
-
-
Save dagolinuxoid/01c424e3e980ff4a3a43e7501773dfa9 to your computer and use it in GitHub Desktop.
neo | config
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
" ~/.config/nvim/init.vim | |
3 | |
2 " ~/.local/share/nvim/site/pack/git-plugins/start | |
1 | |
5 " Colorscheme ^^ | |
1 colorscheme dago | |
2 | |
3 " self-explanatory | |
4 syntax on | |
5 set number | |
6 set showcmd | |
7 set title | |
8 set relativenumber | |
9 set list | |
10 | |
11 " self-explanatory | |
12 :inoremap ( ()<Esc>i | |
13 :inoremap [ []<Esc>i | |
14 :inoremap { {}<Esc>i | |
15 :inoremap " ""<Esc>i | |
16 :inoremap ' ''<Esc>i | |
17 | |
18 " Change cursor shape (legacy hack) | |
19 au InsertEnter * silent execute "!gconftool-2 --type string --set /apps/gnome-terminal/profiles/Default/cursor_shape ibeam" | |
20 au InsertLeave * silent execute "!gconftool-2 --type string --set /apps/gnome-terminal/profiles/Default/cursor_shape block" | |
21 | |
22 " html stuff | |
23 au FileType html set expandtab | |
24 au FileType html set shiftwidth=2 | |
25 au FileType html set softtabstop=2 | |
26 au FileType html set tabstop=2 | |
27 nnoremap ,html :-1read $HOME/.config/nvim/.skeleton.html<CR>6jwf>a | |
28 | |
29 " JavaScript stuff | |
30 au FileType javascript set expandtab | |
31 au Filetype javascript set shiftwidth=4 | |
32 au Filetype javascript set softtabstop=4 | |
33 au Filetype javascript set tabstop=4 | |
34 | |
35 " Spellchecking | |
36 autocmd BufRead,BufNewFile *.md,*.txt setlocal spell spelllang=en_us | |
37 set complete+=kspell |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment