mirror of
https://github.com/NaomiAmethyst/dots.git
synced 2025-04-13 09:30:06 +00:00
make vim handle lack of multibyte chars, also show what command we are in
This commit is contained in:
parent
1f646d7e15
commit
c2754243fa
1 changed files with 13 additions and 11 deletions
12
vimrc
12
vimrc
|
@ -3,19 +3,20 @@
|
||||||
" Trivial modifications: David Majnemer
|
" Trivial modifications: David Majnemer
|
||||||
" vim: set ts=3 sw=3 et nowrap:
|
" vim: set ts=3 sw=3 et nowrap:
|
||||||
|
|
||||||
|
if has ('multi_byte') " Make sure we have unicode support
|
||||||
scriptencoding utf-8 " This file is in UTF-8
|
scriptencoding utf-8 " This file is in UTF-8
|
||||||
|
|
||||||
" ---- Terminal Setup ----
|
" ---- Terminal Setup ----
|
||||||
if (&term =~ "xterm") && (&termencoding == "")
|
if (&termencoding == "")
|
||||||
|
if (&term =~ "xterm") || (&term =~ "rxvt-unicode")
|
||||||
set termencoding=utf-8
|
set termencoding=utf-8
|
||||||
endif
|
endif
|
||||||
|
endif
|
||||||
|
set encoding=utf-8 " Default encoding should always be UTF-8
|
||||||
|
endif
|
||||||
|
|
||||||
if (&term =~ "rxvt-unicode") && (&termencoding == "")
|
|
||||||
set termencoding=utf-8
|
|
||||||
endif
|
|
||||||
" ---- General Setup ----
|
" ---- General Setup ----
|
||||||
set nocompatible " Don't emulate vi's limitations
|
set nocompatible " Don't emulate vi's limitations
|
||||||
set encoding=utf-8 " Default encoding should always be UTF-8
|
|
||||||
set tabstop=4 " 4 spaces for tabs
|
set tabstop=4 " 4 spaces for tabs
|
||||||
set shiftwidth=4 " 4 spaces for indents
|
set shiftwidth=4 " 4 spaces for indents
|
||||||
set smarttab " Tab next line based on current line
|
set smarttab " Tab next line based on current line
|
||||||
|
@ -41,6 +42,7 @@ set hidden " Allow flipping of buffers without saving
|
||||||
set noerrorbells " Disable error bells
|
set noerrorbells " Disable error bells
|
||||||
set visualbell " Turn visual bell on
|
set visualbell " Turn visual bell on
|
||||||
set t_vb= " Make the visual bell emit nothing
|
set t_vb= " Make the visual bell emit nothing
|
||||||
|
set showcmd " Show the current command
|
||||||
|
|
||||||
if has('autocmd')
|
if has('autocmd')
|
||||||
autocmd GuiEnter * set t_vb= " Disable the visual bell in gvim
|
autocmd GuiEnter * set t_vb= " Disable the visual bell in gvim
|
||||||
|
|
Loading…
Add table
Reference in a new issue