forked from aniani/vim
updated for version 7.0037
This commit is contained in:
parent
5f2bb9f584
commit
2a41f3a19f
18
runtime/keymap/polish-slash.vim
Normal file
18
runtime/keymap/polish-slash.vim
Normal file
@ -0,0 +1,18 @@
|
|||||||
|
let encoding = &enc
|
||||||
|
if encoding == 'latin1'
|
||||||
|
if has("unix")
|
||||||
|
let encoding = 'iso-8859-2'
|
||||||
|
else
|
||||||
|
let encoding = 'cp1250'
|
||||||
|
endif
|
||||||
|
endif
|
||||||
|
|
||||||
|
if encoding == 'utf-8'
|
||||||
|
source <sfile>:p:h/polish-slash_utf-8.vim
|
||||||
|
elseif encoding == 'cp1250'
|
||||||
|
source <sfile>:p:h/polish-slash_cp1250.vim
|
||||||
|
elseif encoding == 'iso-8859-2'
|
||||||
|
source <sfile>:p:h/polish-slash_iso-8859-2.vim
|
||||||
|
else
|
||||||
|
source <sfile>:p:h/polish-slash_cp852.vim
|
||||||
|
endif
|
@ -3124,13 +3124,14 @@ current_word(oap, count, include, bigword)
|
|||||||
return FAIL;
|
return FAIL;
|
||||||
if (include != (cls() == 0))
|
if (include != (cls() == 0))
|
||||||
{
|
{
|
||||||
if (fwd_word(1L, bigword, TRUE) == FAIL)
|
if (fwd_word(1L, bigword, TRUE) == FAIL && count > 1)
|
||||||
return FAIL;
|
return FAIL;
|
||||||
/*
|
/*
|
||||||
* If end is just past a new-line, we don't want to include
|
* If end is just past a new-line, we don't want to include
|
||||||
* the first character on the line
|
* the first character on the line.
|
||||||
|
* Put cursor on last char of white.
|
||||||
*/
|
*/
|
||||||
if (oneleft() == FAIL) /* put cursor on last char of white */
|
if (oneleft() == FAIL)
|
||||||
inclusive = FALSE;
|
inclusive = FALSE;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
Loading…
x
Reference in New Issue
Block a user