MCPcopy Create free account
hub / github.com/ycm-core/YouCompleteMe / GetVimCommand

Function GetVimCommand

python/ycm/vimsupport.py:650–654  ·  view source on GitHub ↗
( user_command, default = 'edit' )

Source from the content-addressed store, hash-verified

648
649# Maps User command to vim command
650def GetVimCommand( user_command, default = 'edit' ):
651 vim_command = BUFFER_COMMAND_MAP.get( user_command, default )
652 if vim_command == 'edit' and not BufferIsUsable( vim.current.buffer ):
653 vim_command = 'split'
654 return vim_command
655
656
657def JumpToFile( filename, command, modifiers ):

Callers 2

JumpToFileFunction · 0.85
OpenFilenameFunction · 0.85

Calls 2

BufferIsUsableFunction · 0.85
getMethod · 0.80

Tested by

no test coverage detected