-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathvimrc
82 lines (59 loc) · 1.49 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
" Set compatibility to Vim only
set nocompatible
" Aiuta i plugin quando vengono richiamati
filetype off
" Sinstassi
syntax on
" Carica correttamente i plugins
filetype plugin indent on
" Modelines off
set modelines=0
" Wrap il testo fuori dallo schermo
set wrap
" Massima larghezza del testo e altri dettagli per il testo
set textwidth=79
set formatoptions=tcqrn1
set tabstop=4
set shiftwidth=4
set softtabstop=4
set expandtab
set noshiftround
" Mostra 5 linee sullo scrolling
set scrolloff=5
" Sistema alcuni problemi comuni per quanto riguarda il backspace
set backspace=indent,eol,start
" Aumento velocità scrolling
set ttyfast
" Barra di stato
set laststatus=2
" Opzioni di visualizzazione
set showmode
set showcmd
" Differenti tipi di spazio
set list
set listchars=tab:›\ ,trail:•,extends:#,nbsp:.
" Righe numerate
set number
" Opzioni per visualizzazione della barra di stato
set statusline=%F%m%r%h%w\ [FORMAT=%{&ff}]\ [TYPE=%Y]\ [POS=%l,%v][%p%%]\ [BUFFER=%n]\ %{strftime('%c')}
" Encoding
set encoding=utf-8
" Impostazioni per la ricerca
set hlsearch
set incsearch
set ignorecase
set smartcase
" Salva e carca automaticamente
autocmd BufWinLeave *.* mkview
autocmd BufWinEnter *.* silent loadview
" Chiamata al file vimrc.plug
if filereadable (expand("~/.vimrc.plug"))
source ~/.vimrc.plug
endif
" NERDTREE OPZIONI INIZIO
"
" Mappatura tasto F6 per NerdTreeToogle
nmap <F6> :NERDTreeToggle<CR>
" File Nascosti mostrati da NerdTree
let NERDTreeShowHidden=1
" NERDTREE OPZIONI FINE