forked from tagliati/vimfiles
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.vimrc
93 lines (71 loc) · 1.65 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
set term=builtin_ansi
"Setting VIMHOME
let $VIMHOME = $HOME."/.vim"
"Setting PYTHONPATH
let $PYTHONPATH .= ":".$VIMHOME."/python"
"Setting PATH
let $PATH .= ":".$VIMHOME."/python"
"Loading bundle plugins
call pathogen#runtime_append_all_bundles()
syntax off
filetype indent on
filetype plugin on
"Hidden mode
set hidden
set number
"Backspace
set backspace=2
"linebreak
set wrap linebreak nolist
"Bad whitespaces
autocmd BufEnter * highlight BadWhitespace ctermbg=red guibg=red
autocmd BufEnter * match BadWhitespace /^\t\+/
autocmd BufEnter * match BadWhitespace /\s\+$/
"Setting up tab settings
set tabstop=4
set shiftwidth=4
set softtabstop=4
set tabpagemax=20
set showtabline=4
set autoindent
set expandtab
set smartindent
set smarttab
set wildmenu
set wildmode=list:longest
"Increase HTML indent
let g:html_indent_inctags="html,head,body,tbody"
"Start mappings
"==============
"NERDTree
nmap <silent> <c-p> :NERDTreeToggle<CR>
nmap <silent> <S-f> :NERDTreeFind<CR>
" Removes trailing spaces
function TrimWhiteSpace()
%s/\s*$//
''
:endfunction
map <Leader>o :call TrimWhiteSpace()<CR>
"Moving lines
noremap <C-j> :m+<CR>==
noremap <C-k> :m-2<CR>==
noremap <C-j> <Esc>:m+<CR>==gi
noremap <C-k> <Esc>:m-2<CR>==gi
noremap <C-j> :m'>+<CR>gv=gv
noremap <C-k> :m-2<CR>gv=gv
vnoremap <C-l> xp
vnoremap <C-h> xhP
"============
"End mappings
if has("gui_running")
"Colorscheme
colorscheme jellybeans
"guifont
set guifont=Monaco:h14
set guioptions=egmt
set fuoptions=maxvert,maxhorz
endif
"Cucumber syntax
autocmd BufRead,BufNewFile *.feature setfiletype cucumber
autocmd BufRead,BufNewFile *.feature setfiletype cucumber
"set font and font size