-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathset_vim.pl
executable file
·54 lines (33 loc) · 878 Bytes
/
set_vim.pl
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
#!/usr/env perl
##### run it in $HOME #####
`cd && touch .vimrc`;
my $rc_file = '.vimrc';
my $vimrc =q(
colorscheme delek
map<F2> :NERDTree
autocmd BufWinEnter *.py nnoremap <F8> :w<CR>:!python3 %:p<cr>
map<F9> :w !perl -I/usr/local/www/lib/perl -cT <cr>
map<F7> :w !node
map<F5> :set nu!
execute pathogen#infect()
syntax on
filetype plugin indent on
autocmd BufEnter * let &titlestring = ' ' . expand("%:t")
set tabstop=4
set shiftwidth=4
set expandtab
set title
set nomodeline
set nobackup
set noundofile
set mouse=
set number " <- shows line numbers
set encoding=utf8
set keywordprg=perldoc\-f
);
open(FH, '>', $rc_file) or die $!;
print FH $vimrc;
close FH;
`mkdir -p ~/.vim/autoload ~/.vim/bundle`;
`curl -LSso ~/.vim/autoload/pathogen.vim https://tpo.pe/pathogen.vim`;
`git clone https://github.com/scrooloose/nerdtree.git ~/.vim/bundle/nerdtree`;