-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.vimrc
115 lines (87 loc) · 2.52 KB
/
.vimrc
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
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
set nocompatible " be iMproved, required
filetype off " required
" Help windows find ~/.vim
if has('win32') || has('win64')
set guifont=Consolas:h10
set runtimepath+=~/.vim
set runtimepath+=~/.vim/after
endif
filetype plugin indent on " required
syntax on
let g:CSApprox_verbose_level = 0
" Set the colorscheme to something nice "
let g:molokai_original = 1
colorscheme molokai
" Enable window title "
set title
" Show the commands entered in normal mode "
set showcmd
" Show the cursor position "
set ruler
" Highlight all search matches "
set hlsearch
" Stop comments from continuing onto the next line "
set formatoptions-=ro
set autoindent
set nosmartindent
set noet
set tabstop=4
set shiftwidth=4
" Use smart case sensitive searching "
set ignorecase
set smartcase
" Enable tab completion for commands "
set wildmode=longest,list,full
set wildmenu
" Set and show whitespace characters "
set listchars=eol:$,tab:»\ ,trail:.,extends:>,precedes:<,nbsp:.
" Ensure backspace always works as expected "
set backspace=2
" Stop tilde backup files from being created in the current dir
set backupdir=~/.vim/backup//
" Disable swap file creation
set noswapfile
" Make linespace 2 to stop disappearing underscores
set linespace=2
" Relative line numbers
set number
set relativenumber
" Unmap Ex mode key combination "
:map Q <Nop>
" Make the ctrl left and right arrows move one word at a time
nnoremap <silent> <C-Left> b
nnoremap <silent> <C-Right> w
" Press Space to turn off highlighting and clear any message already displayed.
nnoremap <silent> <Space> :nohlsearch<Bar>:echo<CR>
function! SetupPython()
" Here, you can have the final say on what is set. So
" fixup any settings you don't like.
set noet
set softtabstop=4
set tabstop=4
set shiftwidth=4
set expandtab
endfunction
command! -bar SetupPython call SetupPython()
function! GuiTabLabel()
return exists('t:mytablabel') ? t:mytablabel : ''
endfunction
:set guitablabel=%{GuiTabLabel()}
:set go+=e
"inoremap <Up> <NOP>
"inoremap <Down> <NOP>
"inoremap <Left> <NOP>
"inoremap <Right> <NOP>
noremap <Up> <NOP>
noremap <Down> <NOP>
noremap <Left> <NOP>
noremap <Right> <NOP>
" Enable all python syntax highlighting
let g:python_highlight_all = 1
" Disable concel mode in json plugin
let g:vim_json_syntax_conceal = 0
" Set yaml syntax highlighting on ocio configs
autocmd BufNewFile,BufRead *.ocio set syntax=yaml
" Set json syntax highlighting on eco3 files
autocmd BufNewFile,BufRead *.eco3 set filetype=json
inoremap jk <Esc>