e6200f0ce5
Add a default vimrc to all stx docker containers. The default vimrc that comes with Debian is inconvenient, set the following options: * Disable tabs * Set indent to 4 * Disable TTY mouse events. This allows us to copy & paste between vim and the terminal's window manager * Restore text cursor position after loading a file to where it was when we last closed it * Enable syntax and search highlight TESTS =================== - Rebuild all containers - Start up vim and make sure the new options are in effect NOTE: the lat container doesn't install vim by default Story: 2008846 Task: 45123 Signed-off-by: Davlet Panech <davlet.panech@windriver.com> Change-Id: I0b144b131c2eccbaf97d2dc435475b169a0678e3
17 lines
308 B
Plaintext
17 lines
308 B
Plaintext
" Indent + disable tabs
|
|
set tabstop=4
|
|
set softtabstop=4
|
|
set shiftwidth=4
|
|
set expandtab
|
|
|
|
" Ignore TTY mouse events
|
|
set ttymouse=
|
|
|
|
" Enable search & syntax highlight
|
|
set hlsearch
|
|
syntax on
|
|
|
|
" Restore cursor position
|
|
au BufReadPost * if line("'\"") > 1 && line("'\"") <= line("$") | exe "normal! g`\"" | endif
|
|
|