forked from m4r00p/vimJsIde
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.vimrc
executable file
·72 lines (58 loc) · 1.51 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
set nocompatible
set number
set numberwidth=5
set nowrap
if has("gui_running")
set guioptions=egmrt
endif
:colorscheme desert
set guifont=Monaco:h12
syntax enable
set autoread
"Enable filetype plugin
filetype plugin on
filetype indent on
"indentation
"set autoindent
"set smartindent
"set cindent
set tabstop=4
set softtabstop=4
set shiftwidth=4
set expandtab
" Set to auto read when a file is changed from the outside
set hlsearch
set incsearch
set showmatch
set ruler
set showtabline=2
set encoding=utf8
"highlighw LineNr term=bold cterm=NONE ctermfg=DarkGrey ctermbg=NONE gui=NONE guifg=DarkGrey guibg=NONE
highlight LineNr ctermbg=white ctermfg=black
highlight OverLength ctermbg=black guibg=#592929
match OverLength /\%81v.\+/
nnoremap <C-R> :tabfind<Space>
nnoremap <C-h> :Grep --exclude-dir=.svn -rnH <C-R><C-W> .
nnoremap <C-n> :cnext<CR>
nnoremap <C-p> :cprev<CR>
nnoremap <C-c> :cclose<CR>
nnoremap <C-j> /<C-R><C-W><CR>
nmap ,tt :tabnew<CR>
nmap ,tp :tabprev<CR>
nmap <C-left> :tabprev<CR>
nmap ,tn :tabnext<CR>
nmap <C-right> :tabnext<CR>
nmap ,tc :tabclose<CR>
nmap ,tl :tablast<CR>
nmap ,tf :tabfirst<CR>
"autocmd BufWriteCmd *.js :call CompileJS()
"function! CompileJS()
"if &modified
"write
"let fn = expand('%:p')
"let pn = expand('%:p:h')
"let fnm = expand('%:r.js')
"let cpa = '/home/ubuntu-lenovo/.vim/clousure-compiler/compiler.jar'
"execute "! java -jar " . cpa . " --js=" . fn . " --js_output_file=" . pn . "/" . fnm . ".min.js"
"endif
"endfunction