-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.vimrc
More file actions
79 lines (59 loc) · 1.54 KB
/
.vimrc
File metadata and controls
79 lines (59 loc) · 1.54 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
set nocompatible " required
filetype off " required
set encoding=utf-8
" - Avoid using standard Vim directory names like 'plugin'
"~/.vim/autoload/plug.vim --create-dirs \
" https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim
call plug#begin('~/.vim/plugged')
Plug 'tmhedberg/SimpylFold'
Plug 'scrooloose/nerdtree'
Plug 'kien/ctrlp.vim'
Plug 'Lokaltog/powerline', {'rtp': 'powerline/bindings/vim/'}
Plug 'tpope/vim-fugitive'
Plug 'junegunn/vim-emoji'
Plug 'Valloric/YouCompleteMe'
Plug 'vim-scripts/sudo.vim'
Plug 'LnL7/vim-nix'
Plug 'fatih/vim-go'
Plug 'PotatoesMaster/i3-vim-syntax'
Plug 'dag/vim-fish'
" Initialize plugin system
call plug#end()
" Spell checking {{{
"set spell! spelllang=en_gb
" }}}
"
"Display Numbers
set number
:"split navigations
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>
"Switch to nerdtree view
nnoremap <silent> <C-\> :NERDTreeToggle<CR>
" Enable folding
set foldmethod=indent
set foldlevel=99
" Enable folding with the spacebar
nnoremap <space> za
"add doc string to folder preview
let g:SimpylFold_docstring_preview=1
set tabstop=4
"Fish syntax support
syntax enable
filetype plugin indent on
"Dat emoji support :cat2:
set completefunc=emoji#complete
"Monokai Colour Theme
let g:molokai_original = 1
"let g:rehash256 = 1 "Dark theme
"Transparent background
"hi Normal guibg=NONE ctermbg=NONE
"Change to sudo
" sudo save {{{
command W w sudo:%
command Wq wq sudo:%
" }}}
"Js support
let g:javascript_plugin_jsdoc = 1