TAB not working when changing CTRL+S to save file in vim
问题 I tried to save a file in vim by using CTRL + S . I came across this link http://vim.wikia.com/wiki/Map_Ctrl-S_to_save_current_or_new_files and according to it added these pieces of codes in .basrc and vimrc respectively: vim() { local STTYOPTS="$(stty --save)" stty stop '' -ixoff command vim "$@" stty "$STTYOPTS" } and nmap <C-s> :wq!<cr> Ok now CTRL + S saves the file. But TAB doesn't work now in insert mode. When I press TAB , cursor returns to first column of current line!! Any solutions?