cleanups.
This commit is contained in:
parent
e53cba28ea
commit
a4273d83dd
1 changed files with 81 additions and 84 deletions
157
.vimrc
157
.vimrc
|
|
@ -1,5 +1,77 @@
|
||||||
" Vim configuration from Johannes Findeisen <you@hanez.org>
|
" Vim configuration from Johannes Findeisen <you@hanez.org>
|
||||||
|
|
||||||
|
" Set 'nocompatible' to ward off unexpected things that your distro might
|
||||||
|
" have made, as well as sanely reset options when re-sourcing .vimrc
|
||||||
|
set nocompatible
|
||||||
|
|
||||||
|
" Ensure utf-8 encoding
|
||||||
|
set encoding=utf-8
|
||||||
|
|
||||||
|
" Enable syntax highlighting
|
||||||
|
syntax on
|
||||||
|
|
||||||
|
" Mouse selection
|
||||||
|
set mouse=
|
||||||
|
"set selectmode=mouse
|
||||||
|
|
||||||
|
" No beeping, please...
|
||||||
|
set vb
|
||||||
|
|
||||||
|
" Show line numbers
|
||||||
|
"set number
|
||||||
|
|
||||||
|
" Set line number color (???)
|
||||||
|
" Get colors here:
|
||||||
|
" http://vim.wikia.com/wiki/Xterm256_color_names_for_console_Vim
|
||||||
|
"highlight LineNr ctermfg=220 guifg=#ffd700
|
||||||
|
"set t_Co=256
|
||||||
|
|
||||||
|
" Code indentation
|
||||||
|
filetype plugin indent on
|
||||||
|
set tabstop=2
|
||||||
|
set shiftwidth=2
|
||||||
|
set softtabstop=2
|
||||||
|
set expandtab
|
||||||
|
set autoindent
|
||||||
|
"filetype indent off
|
||||||
|
"set noautoindent
|
||||||
|
"set nocindent
|
||||||
|
"set nosmartindent
|
||||||
|
|
||||||
|
" Show line number
|
||||||
|
"set number
|
||||||
|
|
||||||
|
" Better command-line completion
|
||||||
|
set wildmenu
|
||||||
|
" have command-line completion <Tab> (for filenames, help topics, option names)
|
||||||
|
" first list the available options and complete the longest common part, then
|
||||||
|
" have further <Tab>s cycle through the possibilities
|
||||||
|
set wildmode=list:longest,full
|
||||||
|
|
||||||
|
" Highlight searches (use <C-L> to temporarily turn off highlighting; see the
|
||||||
|
" mapping of <C-L> below)
|
||||||
|
set hlsearch
|
||||||
|
|
||||||
|
" Use case insensitive search, except when using capital letters
|
||||||
|
set ignorecase
|
||||||
|
set smartcase
|
||||||
|
|
||||||
|
" Stop certain movements from always going to the first character of a line.
|
||||||
|
" While this behaviour deviates from that of Vi, it does what most users
|
||||||
|
" coming from other editors would expect.
|
||||||
|
set nostartofline
|
||||||
|
|
||||||
|
" Display the cursor position on the last line of the screen or in the status
|
||||||
|
" line of a window
|
||||||
|
set ruler
|
||||||
|
|
||||||
|
" Instead of failing a command because of unsaved changes, instead raise a
|
||||||
|
" dialogue asking if you wish to save changed files.
|
||||||
|
set confirm
|
||||||
|
|
||||||
|
" Allow hidden buffers
|
||||||
|
set hidden
|
||||||
|
|
||||||
" Managed plugins
|
" Managed plugins
|
||||||
call plug#begin()
|
call plug#begin()
|
||||||
" List your plugins here
|
" List your plugins here
|
||||||
|
|
@ -22,26 +94,17 @@ call plug#end()
|
||||||
" desert feral gentooish grb256 jellygrass kalt last256 matrix
|
" desert feral gentooish grb256 jellygrass kalt last256 matrix
|
||||||
colorscheme molokai
|
colorscheme molokai
|
||||||
|
|
||||||
" Dark background, by default (is this needed when setting the colorsheme?).
|
|
||||||
set background=dark
|
|
||||||
|
|
||||||
" Mouse selection
|
|
||||||
set mouse=
|
|
||||||
set selectmode=mouse
|
|
||||||
|
|
||||||
" No beeping, please...
|
|
||||||
set vb
|
|
||||||
|
|
||||||
" Display the current mode and partially-typed commands in the status line
|
|
||||||
set showmode
|
|
||||||
set showcmd
|
|
||||||
|
|
||||||
" Highlight current line and disable highlighting in insert mode
|
" Highlight current line and disable highlighting in insert mode
|
||||||
set cursorline
|
set cursorline
|
||||||
|
|
||||||
" Statusline
|
" Statusline
|
||||||
|
" Display the current mode and partially-typed commands in the status line
|
||||||
|
set showmode
|
||||||
|
set showcmd
|
||||||
|
|
||||||
set laststatus=2
|
set laststatus=2
|
||||||
set showtabline=2
|
set showtabline=2
|
||||||
|
|
||||||
"set statusline=
|
"set statusline=
|
||||||
"set statusline=%f " File name
|
"set statusline=%f " File name
|
||||||
"set statusline+=%y " File type
|
"set statusline+=%y " File type
|
||||||
|
|
@ -129,72 +192,6 @@ set clipboard=unnamed
|
||||||
" Enable paste mode
|
" Enable paste mode
|
||||||
"set paste
|
"set paste
|
||||||
|
|
||||||
" Enable syntax highlighting
|
|
||||||
syntax on
|
|
||||||
|
|
||||||
" Show line numbers
|
|
||||||
"set number
|
|
||||||
" Set line number color
|
|
||||||
" Get colors here:
|
|
||||||
" http://vim.wikia.com/wiki/Xterm256_color_names_for_console_Vim
|
|
||||||
"highlight LineNr ctermfg=220 guifg=#ffd700
|
|
||||||
""set t_Co=256
|
|
||||||
|
|
||||||
" Set 'nocompatible' to ward off unexpected things that your distro might
|
|
||||||
" have made, as well as sanely reset options when re-sourcing .vimrc
|
|
||||||
set nocompatible
|
|
||||||
|
|
||||||
" Ensure utf-8 encoding
|
|
||||||
set encoding=utf-8
|
|
||||||
|
|
||||||
" Code indentation
|
|
||||||
syntax enable
|
|
||||||
filetype plugin indent on
|
|
||||||
set tabstop=2
|
|
||||||
set shiftwidth=2
|
|
||||||
set softtabstop=2
|
|
||||||
set expandtab
|
|
||||||
set autoindent
|
|
||||||
|
|
||||||
"filetype indent off
|
|
||||||
"set noautoindent
|
|
||||||
"set nocindent
|
|
||||||
"set nosmartindent
|
|
||||||
|
|
||||||
" Show line number
|
|
||||||
"set number
|
|
||||||
|
|
||||||
" Better command-line completion
|
|
||||||
set wildmenu
|
|
||||||
" have command-line completion <Tab> (for filenames, help topics, option names)
|
|
||||||
" first list the available options and complete the longest common part, then
|
|
||||||
" have further <Tab>s cycle through the possibilities
|
|
||||||
set wildmode=list:longest,full
|
|
||||||
|
|
||||||
" Highlight searches (use <C-L> to temporarily turn off highlighting; see the
|
|
||||||
" mapping of <C-L> below)
|
|
||||||
set hlsearch
|
|
||||||
|
|
||||||
" Use case insensitive search, except when using capital letters
|
|
||||||
set ignorecase
|
|
||||||
set smartcase
|
|
||||||
|
|
||||||
" Stop certain movements from always going to the first character of a line.
|
|
||||||
" While this behaviour deviates from that of Vi, it does what most users
|
|
||||||
" coming from other editors would expect.
|
|
||||||
set nostartofline
|
|
||||||
|
|
||||||
" Display the cursor position on the last line of the screen or in the status
|
|
||||||
" line of a window
|
|
||||||
set ruler
|
|
||||||
|
|
||||||
" Instead of failing a command because of unsaved changes, instead raise a
|
|
||||||
" dialogue asking if you wish to save changed files.
|
|
||||||
set confirm
|
|
||||||
|
|
||||||
" Allow hidden buffers
|
|
||||||
set hidden
|
|
||||||
|
|
||||||
" Automatically enable paste mode when pasting.
|
" Automatically enable paste mode when pasting.
|
||||||
" https://stackoverflow.com/questions/2514445/turning-off-auto-indent-when-pasting-text-into-vim/38258720#38258720
|
" https://stackoverflow.com/questions/2514445/turning-off-auto-indent-when-pasting-text-into-vim/38258720#38258720
|
||||||
" https://coderwall.com/p/if9mda/automatically-set-paste-mode-in-vim-when-pasting-in-insert-mode
|
" https://coderwall.com/p/if9mda/automatically-set-paste-mode-in-vim-when-pasting-in-insert-mode
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue