-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.vimrc
More file actions
136 lines (100 loc) · 3.57 KB
/
.vimrc
File metadata and controls
136 lines (100 loc) · 3.57 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
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
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
"Fuentes
set guifont="Verdana\ Bold\ 14"
filetype plugin on
filetype indent on
" General Settings
set autoindent " copy indent from current line
"set autoread " read open files again when changed outside Vim
"set autowrite " write a modified buffer on each :next , ...
"set backup " keep a backup file
"set browsedir=current " which directory to use for the file browser
"set complete+=k " scan the files given with the 'dictionary' option
"set hlsearch " highlightthe last used search pattern
"set incsearch " do incremental searching
"set listchars=tab:>.,eol:\$ " strings to use in 'list' mode
"set mouse=a " enable the use of the mouse
"set ruler " show the cursor position all the time
"set smartindent " smart autoindenting when starting a new line
"highlight MatchParen ctermbg=blue guibg=lightyellow
" comma always followed by a space
"-------------------------------------------------------------------------------
inoremap , ,<Space>
au BufRead,BufNewFile *.tmp setfiletype moinmoin
",v brings up my .vimrc
",V reloads it -- making all changes active (have to save first)
"status line
set statusline=%F%m%r%h%w\ [FORMAT=%{&ff}]\ [TYPE=%Y]\ [ASCII=\%03.3b]\ [HEX=\%02.2B]\ [POS=%04l,%04v][%p%%]\ [LEN=%L]
set laststatus=2
set t_Co=256
"set tw=79
set tw=0
map ,v :sp ~/.vimrc <CR><C-W>_
map <silent> ,V :source ~/.vimrc <CR>:filetype detect<CR>:exe ":echo 'vimrc reloaded'"<CR>
"colorscheme rdark
"colorscheme carvedwood
"colorscheme darkspectrum
"colorscheme rdark
"colorscheme kib_darktango
"colorscheme fine_blue
"colorscheme peachpuff
colorscheme ir_black
syntax on
set encoding=utf8
"Pestannas
set showtabline=2
"Tabs to spaces.
set tabstop=2
set shiftwidth=4
set expandtab
map <F6> <Esc>:syntax off<CR><Esc>:setlocal spell spelllang=es,en<CR>
map <F7> <Esc>:syntax on<CR><Esc>:setlocal nospell<CR>
set tabstop=2
set nu
"map <Esc>[Z <s-tab>
"ounmap <Esc>[Z
nmap <C-o> :browse tabedit<cr>
nmap <C-p> :tabprevious<cr>
nmap <C-x> :tabclose<cr>
nmap <C-c><C-c> :!perl -Wc %<cr>
nmap <tab> v>
nmap <s-tab> v<
vmap <tab> >gv
vmap <s-tab> <gv
imap <F2> <C-R>=strftime("%c")<CR>
imap <F2> <C-R>=system("perl -MDateTime -e 'print DateTime->now'")<CR>
set foldmethod=indent
set viewoptions=folds
"set foldexpr=getline(v:lnum)=~'^\\r*$'&&getline(v:lnum+1)=~'^\\r*$'?'<1':1
"let perl_fold = 0
"let perl_fold_blocks = 0
"let perl_nofold_packages = 1
let perl_extended_vars = 1
"let perl_include_pod = 1
let perl_want_scope_in_variables = 1
set equalprg=perltidy
nmap <C-x><C-i> :call InstallCPANModule()<CR>
function! InstallCPANModule()
let l = getline('.')
let cw = substitute( expand('<cWORD>') , ";$" , "" , "g" )
let cw = substitute( cw , "['\"]" , "" , "g" )
echo "Installing CPAN Module: " . cw . "\n"
silent exec "!cpanp i " . cw . " >& /dev/null"
echo "Done\n"
endfunction
au bufnewfile *.pl 0r ~/.vim/skeleton/template.pl
au bufnewfile *.pod 0r ~/.vim/skeleton/template.pod
au bufnewfile *.pm 0r ~/.vim/skeleton/template.pm
map <F8> :ToggleNERDTree<CR>
let loaded_nerd_comments=1
"Template Toolkit
au BufNewFile,BufRead *.tt2 setf tt2
let b:tt2_syn_tags = '\[% %] <!-- -->'
"XML
let xml_tag_complation_map = "<C-l>"
let xml_tag_syntax_prefixes = 'html\|xml\|xsl\|xsd'
let xml_use_xhtml = 1
set rtp+=/usr/local/lib/python2.7/dist-packages/powerline/bindings/vim/
" Always show statusline
set laststatus=2
" Use 256 colours (Use this setting only if your terminal supports 256
set t_Co=256